package com.atguigu.cloud.service.impl;

import com.atguigu.cloud.dto.UserDTO;
import com.atguigu.cloud.entities.User;
import com.atguigu.cloud.mapper.UserMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.atguigu.cloud.service.UserService;
import jakarta.annotation.Resource;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
* @author Administrator
* @description 针对表【xl_user】的数据库操作Service实现
* @createDate 2024-03-03 00:29:28
*/
@Service
public class UserServiceImpl extends ServiceImpl<UserMapper, User> implements UserService{

    //jdk17推荐用这个
    @Resource
    private UserMapper userMapper;

    @Override
    public Page<UserDTO> getUserPage(UserDTO userDTO, Page<UserDTO> page) {
        return userMapper.getUserPage(userDTO,page);
    }
}




